package com.example.helloworld.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fzy
 * @create 2020 - 11 - 2020/11/29 14:41
 */

// 自动装配
// 返回字符串
@RestController
public class HelloController {

    // 接口： http://localhost:8080/hello
    @RequestMapping("/hello")
    public String hello(){
        // 调用业务，接收前端的参数
        return "hello,world";
    }

}
